#!/bin/bash
read -p "输入ansible_host:" host 
ls -n /root/.ansible/roles/tdjy.scripts/*|awk '{print $9}' 
read -p "输入文件名:" file_name
/usr/bin/ansible $host -m copy -a "src=/root/.ansible/roles/tdjy.scripts/$file_name dest=/root backup=yes"
